package com.lmt.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.lmt.base.BaseEntity;

/**
 * 审核表
 * Date 2018/7/17
 *
 * @author MT-Lin
 */
@Entity(name = "audit")
public class Audit extends BaseEntity {

	/**
	 * 审核人ID
	 */
	@Column(name = "auditor_id", length = 36)
	private String auditorId;

	/**
	 * 审核对象ID
	 */
	@Column(name = "obj_id", nullable = false, length = 36)
	private String objId;

	/**
	 * 审核操作
	 */
	@Column(name = "operation", nullable = false, length = 36)
	private String operation;

	/**
	 * 审核状态（代码表005）
	 */
	@Column(name = "status", nullable = false, length = 6)
	private String status;

	/**
	 * 备注
	 */
	@Column(name = "remark", length = 300)
	private String remark;

	@Transient
	private List<ResourceTemp> resourceTemps;

	public String getAuditorId() {
		return auditorId;
	}

	public void setAuditorId(String auditorId) {
		this.auditorId = auditorId;
	}

	public String getObjId() {
		return objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<ResourceTemp> getResourceTemps() {
		return resourceTemps;
	}

	public void setResourceTemps(List<ResourceTemp> resourceTemps) {
		this.resourceTemps = resourceTemps;
	}
}
